
public class D_licence {

		private Person_name name;
		private String d_birth;
		private String d_issue;
		private boolean full_licence;
		private String licence_number;
		
		public D_licence(Person_name name, String d_birth, String d_issue, boolean full_licence,int serial_num){
			
		}
		public Person_name getName() {
			return name;
		}
		public void setName(Person_name name) {
			this.name = name;
		}
		public String getD_birth() {
			return d_birth;
		}
		public void setD_birth(String d_birth) {
			this.d_birth = d_birth;
		}
		public String getD_issue() {
			return d_issue;
		}
		public void setD_issue(String d_issue) {
			this.d_issue = d_issue;
		}
		public boolean isFull_licence() {
			return full_licence;
		}
		public void setFull_licence(boolean full_licence) {
			this.full_licence = full_licence;
		}
		private boolean create_licence_num (int serial_num){
			if(this.licence_number.startsWith(this.name.getF_name().substring(0, 1))){
				if(this.licence_number.substring(1, 2)==(this.name.getL_name().substring(0, 1))){
					if(this.licence_number.substring(3, 7)==(this.d_issue.substring(6, 10)))
						return true;
				}		
			}
			return false;
		}
		
}
